<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport"
	content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>邮宝洗衣</title>
<link href="../../css/style2app.css" rel="stylesheet" type="text/css">
<link href="../../css/type.css" rel="stylesheet" type="text/css">
<style type="text/css">
/*<![CDATA[*/
* html .decoration {
	position: absolute;
	right: 16px;
	top: 0;
} /*only for ie*/
/*]]>*/
</style>
<!-- Do not move the bellow script to custom.js! It must stay here to
    load properly! -->
<script type="text/javascript" src="../../scripts/jquery.js"></script>
<script type="text/javascript" src="../../scripts/custom2app.js"
	charset="utf-8"></script>
</head>
<body onLoad="loadImages()">
	<p class="no-mobile">
		请使用手机访问本页面！ <br /> 这个页面是专门针对手机设计的！
	</p>
	<div class="site">
		<div id="hidepage">
			<p class="center-text">
				加载中，请耐心等待! <br /> <img src="../../images/background/130.gif"
					alt="load">
			</p>
		</div>
	<div class="decoration">
			<div class="back">
				<a href="../../index2app.jsp?toPage=1&curPage=${param.curPage}">
					<img src="../../images/home/back.png">
				</a>
			</div> 
			<p class="title" style="width: 33%;float: left;">流程跟踪</p>
			<div class="refresh">
				<a href="javascript:window.location.reload()">
					<img src="../../images/refresh.png">
				</a> 
			</div> 
	</div>
	<div id="wrapper">
		<div class="track">
		<p>订单号: <font color="#ff6c0d"></font></p>
		</div>
		<hr style="height:1px;border:none;border-top:1px dashed #0066CC;" />
	</div>
	</div>
	<script type="text/javascript">
	var orderNum = "${param.orderNum}";
	 $(document).ready(function () {
		 $.post("../../transactionRouter2app?funcID=0006&orderNum="+orderNum, function(v) {
				var str = "";
				var length = v.transactionLogs.length;
				for(var i=0;i<length-1;i++){
					var temp = v.transactionLogs[i];
					var date = new Date(temp.time);
					str = "<div class='track_hit'><div class='track_img'><img  src='../../images/order/technological_process.png'></div><div class='track_content'><p>"+temp.description+"</p><p>"+date.Format("yyyy-MM-dd hh:mm:ss")+"</p></div></div>";
					$("hr").after(str);
				}
				var date = new Date(v.transactionLogs[length-1].time);
				str = "<div class='track_now'><div class='track_img'><img  src='../../images/order/current_position.png'></div><div class='track_content'><p>"+v.transactionLogs[length-1].description+"</p><p>"+date.Format("yyyy-MM-dd hh:mm:ss")+"</p></div></div>";
				$("hr").after(str);
				$(".track").find("font").html(v.orderNum);
			});
	 });
	 function loadImages() {
	        if (document.getElementById) { // DOM3 = IE5, NS6
	            document.getElementById('hidepage').style.visibility = 'hidden';
	        } else {
	            if (document.layers) { // Netscape 4
	                document.hidepage.visibility = 'hidden';
	            } else { // IE 4
	                document.all.hidepage.style.visibility = 'hidden';
	            }
	        }
	        var openid=$.session.get("platformId");
	        if(typeof openid == "undefined"||openid==""){
	        	location.href = "../returnMsg.jsp?isapp=0"
				//layer.open({content: '请先注册！',time: 2,end: function(){location.href = "../returnMsg.jsp?isapp=0"}});
			}
	    }
	</script>
</body>
</html>